package com.xing.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.common.utils.PageUtils;
import com.xing.gulimall.product.entity.BrandEntity;
import com.xing.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author xingfuhao
 * @email 2030280200@qq.com
 * @date 2022-08-31 10:41:37
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 新增接口和实现类
     * 新增品牌与分类关联关系
     * @param categoryBrandRelation
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateDetail(CategoryBrandRelationEntity categoryBrandRelationEntity);

    List<BrandEntity> getBrandList(Long catId);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

